/**
 * 配置编译环境和线上环境之间的切换 这里只是配置 非传参
 * @param SERVER_TYPE  ----------- 代码服务器    1测试    2正式  3 google
 * @param apiUrl  ----------- 后台接口API
 * @param config  ----------- 默认导出的配置变量
 */

let apiUrl = ''
const config = {}
const SERVER_TYPE = 1
// 七牛配置字段
let fileSeverJson = {}
const ChineseQn = {
  imgUrl: 'http://scrm-image-qn.xaxhl.net',
  videoUrl: 'http://scrm-video-qn.xaxhl.net',
  qiniu: 'http://up-z1.qiniup.com',
  type: 1
}
const SoutheastQn = {
  imgUrl: 'http://scs-image-jp-qn.xaxhl.net',
  videoUrl: 'http://scs-video-jp-qn.xaxhl.net',
  qiniu: 'http://up-as0.qiniup.com',
  type: 2
}
if (SERVER_TYPE === 1) {
  // 测试
  // apiUrl = 'http://mes-api.xaxhl.net/pmInfoApi/'
  // apiUrl = 'http://192.168.0.116:8080/pmInfoApi/'   //洪
  // apiUrl = 'http://192.168.0.111:8080/pmInfoApi/'   //许
  apiUrl = 'http://swkh.xiandsj.cn:8091/pmInfoApi/' //大数据
  
  fileSeverJson = ChineseQn
} else if (SERVER_TYPE === 2) {
  // 线上
  apiUrl = 'http://scrm-api.xaxhl.net/index.php?s='
  fileSeverJson = ChineseQn
} else {
  // Google
  apiUrl = 'http://scs-api.sokuhou.co/index.php?s='
  fileSeverJson = SoutheastQn
}
config.API_URL = apiUrl
config.QN_CONF = fileSeverJson

export default config
